import { http } from "@/utils/http";

export type UserResult = {
  id: string;
  creationTime: string;
  creatorId?: string;
  tenantId?: string;
  name?: string;
  mobilePhone?: string;
  email?: string;
  dutyStatus: number;
  roles?: string;
  weChatWorkUserId?: string;
};

/** 登录 */
export const getUserInfoApi = (data?: object) => {
  return http.request<UserResult>(
    "post",
    "https://healthcheck.dev.hygeian.com.cn/cloud-callcenter/api-callcenter/api/org-mgmt/employee-profile/get-my",
    { data }
  );
};
